import seaborn as sns
from sklearn.datasets import load_iris
import pandas as pd
from matplotlib import pyplot as plt

iris=pd.DataFrame(load_iris()['data'])
names=['setosa','versicolor','virginica']
species=pd.Series([ names[i] for i in load_iris()['target'] ])
iris.columns=pd.Index(['sepal_length','sepal_width','petal_length','petal_width'])
iris.insert(4,'species',species)
sns.set()
# scatter
sns.relplot(x='sepal_length',y='sepal_width',
            hue='species',style='species',data=iris)
plt.show()
sns.scatterplot(x='sepal_length',y='sepal_width',
                hue='species',style='species',data=iris)
plt.show()
# line chart
sns.relplot(x='sepal_length',y='petal_length',
            hue='species',style='species',
            kind='line',data=iris)
plt.show()
sns.lineplot(x='sepal_length',y='petal_length',
             hue='species',style='species',data=iris)
plt.show()
